<script>
    $(function () {

        var form = new Vue({
            el:'#form',
            data:{
                job_type:window.job_type_selected,
                job_type_options:window.job_type_options,
            },
            mounted:function(){
                $('select[name=job_type]').val(this.job_type);
            },
            methods:{
            }
        });

        var validator = $("#form").validate({
            rules: {
                job_type:{
                    required:true
                },
            },
            messages: {
                job_type:{
                    required:'请选择职业类型'
                },
            },
            submitHandler: function(form) {
                form.submit();
            },
        });
    });
</script>
<style>
    .txt2 {
        border-image: none;
        border-style: none none none solid;
        border-width: medium medium medium 1px;
        color: #666;
        float: left;
        height: 38px;
        line-height: 38px;
        overflow: hidden;
        text-align: center;
        width: 35%;
    }
</style>